﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Security.Permissions;

//[assembly:AssemblyVersion("2.2.2.2")]
namespace ReflectionExplore
{
    class ReflectionMethod
    {

        public static string doAction(object o, string methodName)
        {

            Assembly assem = Assembly.GetExecutingAssembly();

            AObject ao = (AObject)assem.CreateInstance("ReflectionExplore.AObject");
            MethodInfo mi = assem.GetType("ReflectionExplore.AObject").GetMethod("showInfo");

            var result = (String)mi.Invoke(ao, null);
            return result;
        }

    }
}
